﻿function returnInfo(url, src_name, suffix, publish_url) {

    var returnData = new Array();
    returnData['url'] = url;
    returnData['src_name'] = src_name;
    returnData['suffix'] = suffix;
    returnData['publish_url'] = publish_url;
    window.returnValue = returnData;
    window.close();
}





function loadBarDisplay(form) {
    var x, y;
    x = document.body.clientWidth;
    y = document.body.clientHeight;

    var top = (y / 2) - 50;
    var left = (x / 2) - 150;
    if (left <= 0) left = 10;


    //loader.style.left = left + "px"
    //loader.style.top = top + "px";
    $("#loader").css({ 'left': left, 'top': top });
    $("#loader").show();
    $('.table_form').hide();
    form.submit();
    return;

}

function loadBarUnDisplay() {
    $("#loader").hide();
    $('.table_form').show();

}